package com.drug.mapper;

import com.drug.domain.DrugAtegory;
import com.drug.domain.DrugInformation;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DrugAtegoryMapper {
    int deleteByPrimaryKey(Integer daId);

    int insert(DrugAtegory record);

    int insertSelective(DrugAtegory record);

    DrugAtegory selectByPrimaryKey(Integer daId);

    int updateByPrimaryKeySelective(DrugAtegory record);

    int updateByPrimaryKey(DrugAtegory record);


    //药品品目添加
    int insertDrugAtegory(DrugAtegory drugAtegory);

    //添加商品名
    int insertDrugAtegoryName(DrugAtegory drugAtegory);

    /**
     * 根据id回显
     */
    DrugAtegory selectDaById(Integer daId);

    Integer insertImp(DrugAtegory drugAtegory);

    /**
     * 根据id修改药品品目号
     */
    int updateDrugAtegory(DrugAtegory drugAtegory);

    //修改商品名
    int updateDrugAtegorydaName(DrugAtegory drugAtegory);

    //根据名字查询id
    int selectidbyname(DrugAtegory drugAtegory);

    /**
     * 查询商品名是否已存在
     */

    String[] daName();

}